﻿using Loki.IoC;
using Loki.IoC.Registration;
using Luna.Connectors;

namespace Luna.Model.Configuration
{
    public class ServiceInstaller : LokiContextInstaller
    {
        public override void Install(IObjectContext P_Context)
        {
            P_Context.Register(Element.Entity<IConnectorConfiguration, ConnectorConfiguration>());

            P_Context.Register(Element.Service<IConfigurationService, LunaConfigurationService>());
        }

        private static ServiceInstaller _Configuration = new ServiceInstaller();

        public static ServiceInstaller Configuration
        {
            get
            {
                return _Configuration;
            }
        }
    }
}